<?php
namespace app\admin\controller;
use app\BaseController;
use think\facade\Cache;
use app\common\model\CustomerServiceModel;
class Auth extends BaseController{
    public function login(){
        $admin_token = $this->request->param('admin_token/s','');
        if(empty($admin_token)){
            return error('错误登录');
        }
        $FirmInfo = Cache::get('admin_token_'.$admin_token);
        $kefu = CustomerServiceModel::find($FirmInfo['customer_service_id']);
        return success(['account_info' => $FirmInfo, 'kefu' => $kefu]);
    }
}